package com.defangit.award.extend.wxmp.rest;

import com.defangit.award.extend.wxmp.orm.WxmpUserInfoService;
import com.laogen.jersey_util.paged.PagerParams;

import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import java.util.List;

/**
 * Created by zhangfagen on 2019/1/12.
 */
@Path("userInfo")
public class WxmpUserInfoResource {
    @GET @Produces("application/json")
    public Response forUsers(@QueryParam("openid")List<String> ids,
                             @BeanParam()PagerParams pager){
        return pager.toResponse(new WxmpUserInfoService().findAll().ids(ids));
    }
}
